package cn.lili.modules.grab.xdxt.res.order;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderFreightPreviewReq {

    @ApiModelProperty("必须 省ID")
    private String province;

    @ApiModelProperty("必须 市ID")
    private String city;

    @ApiModelProperty("必须 区/县ID")
    private String district;

    @ApiModelProperty("详细地址")
    private String addressDetail;

    @ApiModelProperty("商品信息数组")
    private List<OrderDetailsList> orderDetailsList;

    @Data
    public static class OrderDetailsList {
        @ApiModelProperty("规格编码")
        private String code;

        @ApiModelProperty("购买数量")
        private Integer num;
    }
}
